<template>
  <div class="dialog">
    <el-dialog title="视频播放" :visible="isVideoDialogShow" @close="addCancel">
      <!-- <video :src="videoUrl" width="100%" controls="controls" autoplay="autoplay" type="video/mp4" /> -->
      <video src="https://video.pearvideo.com/mp4/adshort/20220418/cont-1759035-15863820_adpkg-ad_hd.mp4" width="100%" controls="controls" autoplay="autoplay" type="video/mp4" />
    </el-dialog>
  </div>
</template>

<script>
export default {
	name: 'VideoDialog',
	props: {
		isVideoDialogShow: Boolean,
		videoURL: {
			type: String,
			default: ''
		}
	},
	data() {
		return {
			videoUrl: ''
		}
	},
	watch: {
		videoURL(newVal) {
		this.videoUrl = newVal
		}
	},
	methods: {
		addCancel() {
			this.$emit('update:isVideoDialogShow', false)
			this.videoUrl = ''
		}
	}
}
</script>

<style scoped>
::v-deep .el-dialog{
	border-radius: 15px;
}
::v-deep .el-dialog__header{
	background-color:#409eff;
	border-radius: 15px 15px 0 0;

}
::v-deep .el-dialog__title{
	color:#fff;
}
::v-deep .el-dialog__close{
	color:#fff
}
b-embed{
	display: inline-block;
	width: 100px;
	height: 100px;
}
b-embed source{
	display: inline-block;
	width: 100px;
	height: 100px;
}
</style>